package com.newedu.equipmgr.dao;


import com.newedu.equipmgr.entity.SysPermission;
import com.newedu.equipmgr.entity.SysPermissionMenuVO;

import java.sql.SQLException;
import java.util.List;

/**
 * @author jerry
 * @create 2020-06-10 17:05:27
 * @company 新开普电子股份有限公司
 */
public interface SysPermissionDao {

	/** insert update delete select All select one select by condition with paging*/


	boolean insert(SysPermission sysPermission) throws SQLException;


	boolean update(SysPermission sysPermission) throws SQLException;

	boolean delete(int id) throws SQLException;


	List<SysPermission> selectAll() throws SQLException;


	SysPermission selectOne(int id) throws SQLException;


	List<SysPermission> selectBy(String condition, int pageNum, int pageSize) throws SQLException;


	int countRows(String condition)throws SQLException;

	List<SysPermissionMenuVO> queryPermissionListBy(String userid)throws SQLException;

}
